<?php

	include_once '../com/mss//model/Monastery.php';
	include '../com/mss/service/MonasteryService.php';
	
	class MonasteryAction {
		
		public function save($file) {
			$monastery_service = new MonasteryService();
			$monastery_service->save($file);
		}
		
		public function selectAll() {
			$monastery_service = new MonasteryService();
			return $monastery_service->selectAll();
		}
		
		public function view($id) {
			$monastery_service = new MonasteryService();
			return $monastery_service->view($id);
		}
		
		public function update(Monastery $monastery) {
			$monastery_service = new MonasteryService();
			$monastery_service->update($monastery);
		}
	}

?>